﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WebApplication3.Models
{
	public class OrderCreateModel
	{
		[Required]
		public string OpenId { get; set; }

		/// <summary>
		/// 客户所在经度
		/// </summary>
		[Required]
		public string CustomerLongitude { get; set; }

		/// <summary>
		/// 客户所在纬度
		/// </summary>
		[Required]
		public string CustomerLatitude { get; set; }

		/// <summary>
		/// 收件人经度
		/// </summary>
		[Required]
		public string ReceiveLongitude { get; set; }

		/// <summary>
		/// 收件人纬度
		/// </summary>
		[Required]
		public string ReceiveLatitude { get; set; }


		/// <summary>
		/// 收件人
		/// </summary>
		[Required]
		public string ReceiveName { get; set; }


		/// <summary>
		/// 收件人电话
		/// </summary>
		[Required]
		public string ReceiveMobile { get; set; }

		/// <summary>
		/// 收件人地址
		/// </summary>
		[Required]
		public string ReceiveAddress { get; set; }

		/// <summary>
		/// 寄托无
		/// </summary>
		[Required]
		public string ProductName { get; set; }

		/// <summary>
		/// 物品重量
		/// </summary>
		[Required]
		public int WeightGram { get; set; }

	}

	public class OrderDetailViewModel
	{
		public int Id { get; set; }

		/// <summary>
		/// 收件人
		/// </summary>
		[Required]
		public string ReceiveName { get; set; }


		/// <summary>
		/// 收件人电话
		/// </summary>
		[Required]
		public string ReceiveMobile { get; set; }

		/// <summary>
		/// 收件人地址
		/// </summary>
		[Required]
		public string ReceiveAddress { get; set; }

		/// <summary>
		/// 寄托无
		/// </summary>
		[Required]
		public string ProductName { get; set; }

		/// <summary>
		/// 物品重量
		/// </summary>
		[Required]
		public int WeightGram { get; set; }

		public string CreateAt { get; set; }
	}

	public class OrderViewModel {
		public List<OrderDetailViewModel> OrderDetails { get; set; }
		
	}



}
